CHALLENGE #4: Wow, this code is confusing! Let's simplify it by using functions with parameters.

  • Use only one Loop with Range.
  • Create one function called launch using Define Function with Parameters with one parameter: launch_velocity.
  • Your code should do EXACTLY the same thing as the original program.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)